<?php
session_start();

// If the session vars aren't set, try to set them with a cookie
if (!isset($_SESSION['usuario'])) {
    if (isset($_COOKIE['usuario']) && isset($_COOKIE['senha'])) {
        $_SESSION['usuario'] = $_COOKIE['usuario'];
        $_SESSION['senha'] = $_COOKIE['senha']; 
    }
}
?>
